// const MAX_POINTS: u32 = 100_00;
fn main() {
    let x = 5;
    let x = x + 1;
    let x = x * 2;
    println!("this value of x is:{}", x);
    println!("x:{}", x);

    let x = 2.0;

    println!("x:{}", x);

    //复合类型
    // let str = "123";
    let tup: (i32, f64, bool) = (400, 33.232, false);
    let (x, y, z) = tup;
    println!("this value of tap :{},{},{}", x, y, z);

    // println!("this value of tap :{},{},{}", tup.0, tup.1, tup.2);

    let arr: [&str; 6] = ["a", "2", "3", "4", "5", "6"];
    let str: &str = arr[arr.len() - 1];
    println!("arr value :{}", str);

    another_funtion(str);

    println!("fn return value is {}", five(str.to_string()));
}

fn another_funtion(str: &str) {
    println!("value is :{}", str)
}

fn five(str: String) -> String {
    (str + "我是返回值").to_string()
}
